<?php

namespace ApigilityActivity\DoctrineEntity;

use ApigilityAddress\DoctrineEntity\Address;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\OneToOne;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\JoinTable;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\ORM\Mapping\OneToMany;

/**
 * Class Activity
 * @package ApigilityActivity\DoctrineEntity
 * @Entity @Table(name="hl_activity_review")
 */
class Review
{
    const SEX_MALE = 1;    // 男性
    const SEX_FEMALE = 2;  // 女性


    /**
     * @Id @Column(type="integer")
     * @GeneratedValue
     */
    protected $id;

    /**
     * 昵称
     *
     * @Column(type="string", length=50, nullable=true)
     */
    protected $content;

    /**
     *
     * @Column(type="integer", nullable=false)
     */
    protected $uid;

    /**
     *
     * @Column(type="integer", nullable=false)
     */
    protected $ac_id;

    /**
     *
     * @Column(type="integer", nullable=false)
     */
    protected $added_time;

  
    /**
     * Oauth2认证token
     * @OneToMany(targetEntity="ApigilityOauth2Adapter\DoctrineEntity\OauthAccessToken", mappedBy="user")
     */
    protected $tokens;

    public function __construct()
    {
        $this->professionalCertifications = new ArrayCollection();
        $this->tokens = new ArrayCollection();
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getId()
    {
        return $this->id;
    }

    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    

    public function getContent()
    {
        return $this->content;
    }
    
        public function setUid($uid)
    {
        $this->uid = $uid;
        return $this;
    }

    public function getUid()
    {
        return $this->uid;
    }

    public function setAcid($ac_id)
    {
        $this->ac_id = $ac_id;
        return $this;
    }

    public function getAcid()
    {
        return $this->ac_id;
    }

    public function setUpdatedTime($updated_time)
    {
        $this->updated_time = $updated_time;
        return $this;
    }

    public function getUpdatedTime()
    {
        return $this->updated_time;
    }

    public function setAddedTime($added_time)
    {
        $this->added_time = $added_time;
        return $this;
    }

    public function getAddedTime()
    {
        return $this->added_time;
    }
    

    // public function setPersonalCertification($personalCertification)
    // {
    //     $this->personalCertification = $personalCertification;
    //     return $this;
    // }

    // public function getPersonalCertification()
    // {
    //     return $this->personalCertification;
    // }

    

    public function setTokens($tokens)
    {
        $this->tokens = $tokens;
        return $this;
    }

    public function getTokens()
    {
        return $this->tokens;
    }
}